package com.bdqn.ch03.SL;


import com.bdqn.ch03.service.Buyer;
import com.bdqn.ch03.service.impl.IntermediaryImpl;
import com.bdqn.ch03.service.impl.RealBuyer;
import org.apache.log4j.Logger;

/**
 * BuyerTest
 *
 * @aurhor Administrator  whs
 * @since 2024/7/1
 */
public class BuyerTest {
    private Logger logger = Logger.getLogger(BuyerTest.class);

    public static void main(String[] args) {
        BuyerTest test = new BuyerTest();
        try {
            test.havealookImpl();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
    public void havealookImpl() throws Exception{
        Buyer buyer = new IntermediaryImpl(new RealBuyer());
        String result =buyer.havealook();
        logger.debug(result);

    }

}
